package com.glut.service;

import com.glut.vo.SdfsQuestions;
import com.glut.vo.TempExam;

import java.util.List;
import java.util.Map;

public interface GeneratePaperService {
	//初始种群
	public List<TempExam> initPol(int count, TempExam expectedExam, List<SdfsQuestions> questionsDB,List<Map<String, List<SdfsQuestions>>> qtList);
	//选择算子
	public List<TempExam> select(List<TempExam> unitList, int count);
	//交叉算子
	public List<TempExam> cross(List<TempExam> unitList, int count, TempExam expectedExam,List<Map<String, List<SdfsQuestions>>> qtList);
	//变异算子
	public List<TempExam> change(List<TempExam> unitList, List<SdfsQuestions> questionDB, TempExam expectedExam,List<Map<String, List<SdfsQuestions>>> qtList);
	//判断结束
	public boolean isEnd(List<TempExam> unitList, double expandAdapterDegree);
	
}
